﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<MVCvoucherAsp.BTC>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<h2>Klantenpagina</h2>
<table>
    <tr>
        <th>
            Handelaar
        </th>
        <th>
            email
        </th>
       <th>       
       </th>
    </tr>
<% foreach (var item in Model) { %>
    <tr>
        <td>
            <%: Html.DisplayFor(modelItem => item.BtcNaam) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.email) %>
        </td> 
        <td>
           <%: Html.ActionLink("Details", "Details", new { id=item.BtcId }) %> |
           <%: Html.ActionLink("Vouchers", "VoucherByBtc", new { id=item.BtcId }) %> |
           </td>
    </tr>
<% } %>
</table>
</asp:Content>
